home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / GXMessages.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  2.9 KB  |  154 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        GXMessages.a
  3. ;
  4. ;    Contains:    This file contains all of the public data structures,
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__GXMESSAGES__') = 'UNDEFINED' THEN
  21. __GXMESSAGES__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  25.     include 'ConditionalMacros.a'
  26.     ENDIF
  27.  
  28.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  29.     include 'MixedMode.a'
  30.     ENDIF
  31. ;        include 'Types.a'                                            ;
  32.  
  33.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  34.     include 'Types.a'
  35.     ENDIF
  36. ;
  37. ;
  38. ;    >>>>>> CONSTANTS <<<<<<
  39. ;
  40. ;
  41. ; Message Manager Trap 
  42.  
  43. messageManagerTrap                EQU        $ABFB
  44.  
  45. ; Message Manager Gestalt Selector 
  46. gestaltMessageMgrVersion        EQU        'mess'
  47.  
  48. ; Message Manager Error Result Codes 
  49. messageStopLoopingErr            EQU        -5775
  50. cantDeleteRunningHandlerErr        EQU        -5776
  51. noMessageTableErr                EQU        -5777
  52. dupSignatureErr                    EQU        -5778
  53. messageNotReceivedErr            EQU        -5799
  54.  
  55. ; typedef MessageGlobalsInitProcPtr  MessageGlobalsInitProc
  56. ;
  57. ;
  58. ;    PUBLIC INTERFACES
  59. ;
  60. ;    Message Handler API Routines
  61. ;
  62. ;
  63. ; long CountMessageHandlerInstances(void)
  64. ;
  65.     IF ¬ GENERATINGCFM THEN
  66.         Macro
  67.         _CountMessageHandlerInstances
  68.             moveq    #40,d0
  69.             dc.w     $ABFB
  70.         EndM
  71.     ELSE
  72.         IMPORT_CFM_FUNCTION    CountMessageHandlerInstances
  73.     ENDIF
  74.  
  75. ;
  76. ; void *GetMessageHandlerClassContext(void)
  77. ;
  78.     IF ¬ GENERATINGCFM THEN
  79.         Macro
  80.         _GetMessageHandlerClassContext
  81.             moveq    #41,d0
  82.             dc.w     $ABFB
  83.         EndM
  84.     ELSE
  85.         IMPORT_CFM_FUNCTION    GetMessageHandlerClassContext
  86.     ENDIF
  87.  
  88. ;
  89. ; void *SetMessageHandlerClassContext(void *anyValue)
  90. ;
  91.     IF ¬ GENERATINGCFM THEN
  92.         Macro
  93.         _SetMessageHandlerClassContext
  94.             moveq    #42,d0
  95.             dc.w     $ABFB
  96.         EndM
  97.     ELSE
  98.         IMPORT_CFM_FUNCTION    SetMessageHandlerClassContext
  99.     ENDIF
  100.  
  101. ;
  102. ; void *GetMessageHandlerInstanceContext(void)
  103. ;
  104.     IF ¬ GENERATINGCFM THEN
  105.         Macro
  106.         _GetMessageHandlerInstanceContext
  107.             moveq    #43,d0
  108.             dc.w     $ABFB
  109.         EndM
  110.     ELSE
  111.         IMPORT_CFM_FUNCTION    GetMessageHandlerInstanceContext
  112.     ENDIF
  113.  
  114. ;
  115. ; void *SetMessageHandlerInstanceContext(void *anyValue)
  116. ;
  117.     IF ¬ GENERATINGCFM THEN
  118.         Macro
  119.         _SetMessageHandlerInstanceContext
  120.             moveq    #44,d0
  121.             dc.w     $ABFB
  122.         EndM
  123.     ELSE
  124.         IMPORT_CFM_FUNCTION    SetMessageHandlerInstanceContext
  125.     ENDIF
  126.  
  127. ;
  128. ; OSErr NewMessageGlobals(long messageGlobalsSize, MessageGlobalsInitUPP initProc)
  129. ;
  130.     IF ¬ GENERATINGCFM THEN
  131.         Macro
  132.         _NewMessageGlobals
  133.             moveq    #45,d0
  134.             dc.w     $ABFB
  135.         EndM
  136.     ELSE
  137.         IMPORT_CFM_FUNCTION    NewMessageGlobals
  138.     ENDIF
  139.  
  140. ;
  141. ; void DisposeMessageGlobals(void)
  142. ;
  143.     IF ¬ GENERATINGCFM THEN
  144.         Macro
  145.         _DisposeMessageGlobals
  146.             moveq    #46,d0
  147.             dc.w     $ABFB
  148.         EndM
  149.     ELSE
  150.         IMPORT_CFM_FUNCTION    DisposeMessageGlobals
  151.     ENDIF
  152.  
  153.     ENDIF ; __GXMESSAGES__
  154.